package com.ibm.moa.outmail.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android.webkit.WebView;
import android.widget.LinearLayout;

public class MyLinearlayout extends LinearLayout {

	public MyLinearlayout(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public MyLinearlayout(Context context) {
		super(context);
	}

	@Override
	public boolean dispatchTouchEvent(MotionEvent ev) {
		int count = getChildCount();
		for (int i = 0; i < count; i++) {
			View view = getChildAt(i);
			if (view instanceof WebView) {
				WebView wv = (WebView) view;
				wv.dispatchTouchEvent(ev);
			}
		}
		return super.dispatchTouchEvent(ev);
	}
}
